package Ch6;

import java.util.Arrays;

public class ArrayCopy1 {
	public static void main(String[] args) {
		int[] arr = { 1, 2, 3, 4, 5 };

		int[] arr2 = new int[10];

		for (int i = 0; i < arr.length; i++) {
			arr2[i] = arr[i];
		}
		
		arr[0] = 10;

		System.out.println(Arrays.toString(arr));
		System.out.println(Arrays.toString(arr2));
	}
}
